package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * dh_center_price
 * 
 * @author
 */
public class CenterPrice implements Serializable {
	/**
	 * 主键
	 */
	private String				id;

	/**
	 * 中心ID
	 */
	private String				centerId;

	/**
	 * 中心名字
	 */
	private String				centerName;

	/**
	 * 资源分类ID
	 */
	private String				resCategoryId;

	private String				resCategoryName;

	private Integer				isContinuous;

	private Integer				mirrorSaleType;

	private String				mirrorSalePrice;

	private Integer				cloudSaleType;

	private String				cloudSalePrice;

	private String				year;

	private String				userId;

	private String				userName;

	private Date				createDate;

	private String				updateUserId;

	private String				updateUserName;

	private Date				updateDate;

	private String				dhCenterPricecol;
	
	private Integer				belongLibrary;

	private static final long	serialVersionUID	= 1L;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCenterId() {
		return centerId;
	}

	public void setCenterId(String centerId) {
		this.centerId = centerId;
	}

	public String getCenterName() {
		return centerName;
	}

	public void setCenterName(String centerName) {
		this.centerName = centerName;
	}

	public String getResCategoryId() {
		return resCategoryId;
	}

	public void setResCategoryId(String resCategoryId) {
		this.resCategoryId = resCategoryId;
	}

	public String getResCategoryName() {
		return resCategoryName;
	}

	public void setResCategoryName(String resCategoryName) {
		this.resCategoryName = resCategoryName;
	}

	public Integer getIsContinuous() {
		return isContinuous;
	}

	public void setIsContinuous(Integer isContinuous) {
		this.isContinuous = isContinuous;
	}

	public Integer getMirrorSaleType() {
		return mirrorSaleType;
	}

	public void setMirrorSaleType(Integer mirrorSaleType) {
		this.mirrorSaleType = mirrorSaleType;
	}

	public String getMirrorSalePrice() {
		return mirrorSalePrice;
	}

	public void setMirrorSalePrice(String mirrorSalePrice) {
		this.mirrorSalePrice = mirrorSalePrice;
	}

	public Integer getCloudSaleType() {
		return cloudSaleType;
	}

	public void setCloudSaleType(Integer cloudSaleType) {
		this.cloudSaleType = cloudSaleType;
	}

	public String getCloudSalePrice() {
		return cloudSalePrice;
	}

	public void setCloudSalePrice(String cloudSalePrice) {
		this.cloudSalePrice = cloudSalePrice;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId;
	}

	public String getUpdateUserName() {
		return updateUserName;
	}

	public void setUpdateUserName(String updateUserName) {
		this.updateUserName = updateUserName;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getDhCenterPricecol() {
		return dhCenterPricecol;
	}

	public void setDhCenterPricecol(String dhCenterPricecol) {
		this.dhCenterPricecol = dhCenterPricecol;
	}

	public Integer getBelongLibrary() {
		return belongLibrary;
	}

	public void setBelongLibrary(Integer belongLibrary) {
		this.belongLibrary = belongLibrary;
	}

	public CenterPrice() {
		super();
	}

	public CenterPrice(String id, String centerId, String centerName, String resCategoryId, String resCategoryName, Integer isContinuous,
			Integer mirrorSaleType, String mirrorSalePrice, Integer cloudSaleType, String cloudSalePrice, String year, String userId, String userName,
			Date createDate, String updateUserId, String updateUserName, Date updateDate, String dhCenterPricecol, Integer belongLibrary) {
		super();
		this.id = id;
		this.centerId = centerId;
		this.centerName = centerName;
		this.resCategoryId = resCategoryId;
		this.resCategoryName = resCategoryName;
		this.isContinuous = isContinuous;
		this.mirrorSaleType = mirrorSaleType;
		this.mirrorSalePrice = mirrorSalePrice;
		this.cloudSaleType = cloudSaleType;
		this.cloudSalePrice = cloudSalePrice;
		this.year = year;
		this.userId = userId;
		this.userName = userName;
		this.createDate = createDate;
		this.updateUserId = updateUserId;
		this.updateUserName = updateUserName;
		this.updateDate = updateDate;
		this.dhCenterPricecol = dhCenterPricecol;
		this.belongLibrary = belongLibrary;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((belongLibrary == null) ? 0 : belongLibrary.hashCode());
		result = prime * result + ((centerId == null) ? 0 : centerId.hashCode());
		result = prime * result + ((centerName == null) ? 0 : centerName.hashCode());
		result = prime * result + ((cloudSalePrice == null) ? 0 : cloudSalePrice.hashCode());
		result = prime * result + ((cloudSaleType == null) ? 0 : cloudSaleType.hashCode());
		result = prime * result + ((createDate == null) ? 0 : createDate.hashCode());
		result = prime * result + ((dhCenterPricecol == null) ? 0 : dhCenterPricecol.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((isContinuous == null) ? 0 : isContinuous.hashCode());
		result = prime * result + ((mirrorSalePrice == null) ? 0 : mirrorSalePrice.hashCode());
		result = prime * result + ((mirrorSaleType == null) ? 0 : mirrorSaleType.hashCode());
		result = prime * result + ((resCategoryId == null) ? 0 : resCategoryId.hashCode());
		result = prime * result + ((resCategoryName == null) ? 0 : resCategoryName.hashCode());
		result = prime * result + ((updateDate == null) ? 0 : updateDate.hashCode());
		result = prime * result + ((updateUserId == null) ? 0 : updateUserId.hashCode());
		result = prime * result + ((updateUserName == null) ? 0 : updateUserName.hashCode());
		result = prime * result + ((userId == null) ? 0 : userId.hashCode());
		result = prime * result + ((userName == null) ? 0 : userName.hashCode());
		result = prime * result + ((year == null) ? 0 : year.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CenterPrice other = (CenterPrice) obj;
		if (belongLibrary == null) {
			if (other.belongLibrary != null)
				return false;
		} else if (!belongLibrary.equals( other.belongLibrary ))
			return false;
		if (centerId == null) {
			if (other.centerId != null)
				return false;
		} else if (!centerId.equals( other.centerId ))
			return false;
		if (centerName == null) {
			if (other.centerName != null)
				return false;
		} else if (!centerName.equals( other.centerName ))
			return false;
		if (cloudSalePrice == null) {
			if (other.cloudSalePrice != null)
				return false;
		} else if (!cloudSalePrice.equals( other.cloudSalePrice ))
			return false;
		if (cloudSaleType == null) {
			if (other.cloudSaleType != null)
				return false;
		} else if (!cloudSaleType.equals( other.cloudSaleType ))
			return false;
		if (createDate == null) {
			if (other.createDate != null)
				return false;
		} else if (!createDate.equals( other.createDate ))
			return false;
		if (dhCenterPricecol == null) {
			if (other.dhCenterPricecol != null)
				return false;
		} else if (!dhCenterPricecol.equals( other.dhCenterPricecol ))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals( other.id ))
			return false;
		if (isContinuous == null) {
			if (other.isContinuous != null)
				return false;
		} else if (!isContinuous.equals( other.isContinuous ))
			return false;
		if (mirrorSalePrice == null) {
			if (other.mirrorSalePrice != null)
				return false;
		} else if (!mirrorSalePrice.equals( other.mirrorSalePrice ))
			return false;
		if (mirrorSaleType == null) {
			if (other.mirrorSaleType != null)
				return false;
		} else if (!mirrorSaleType.equals( other.mirrorSaleType ))
			return false;
		if (resCategoryId == null) {
			if (other.resCategoryId != null)
				return false;
		} else if (!resCategoryId.equals( other.resCategoryId ))
			return false;
		if (resCategoryName == null) {
			if (other.resCategoryName != null)
				return false;
		} else if (!resCategoryName.equals( other.resCategoryName ))
			return false;
		if (updateDate == null) {
			if (other.updateDate != null)
				return false;
		} else if (!updateDate.equals( other.updateDate ))
			return false;
		if (updateUserId == null) {
			if (other.updateUserId != null)
				return false;
		} else if (!updateUserId.equals( other.updateUserId ))
			return false;
		if (updateUserName == null) {
			if (other.updateUserName != null)
				return false;
		} else if (!updateUserName.equals( other.updateUserName ))
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals( other.userId ))
			return false;
		if (userName == null) {
			if (other.userName != null)
				return false;
		} else if (!userName.equals( other.userName ))
			return false;
		if (year == null) {
			if (other.year != null)
				return false;
		} else if (!year.equals( other.year ))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "CenterPrice [id=" + id + ", centerId=" + centerId + ", centerName=" + centerName + ", resCategoryId=" + resCategoryId
				+ ", resCategoryName=" + resCategoryName + ", isContinuous=" + isContinuous + ", mirrorSaleType=" + mirrorSaleType
				+ ", mirrorSalePrice=" + mirrorSalePrice + ", cloudSaleType=" + cloudSaleType + ", cloudSalePrice=" + cloudSalePrice + ", year="
				+ year + ", userId=" + userId + ", userName=" + userName + ", createDate=" + createDate + ", updateUserId=" + updateUserId
				+ ", updateUserName=" + updateUserName + ", updateDate=" + updateDate + ", dhCenterPricecol=" + dhCenterPricecol + ", belongLibrary="
				+ belongLibrary + "]";
	}

	
}